local liaofan_active = fk.CreateSkill {
  name = "hanqing__liaofan_active",
}

Fk:loadTranslationTable{
  ["hanqing__liaofan_active"] = "燎燔",
}

local DIY = require "packages/diy_utility/diy_utility"

liaofan_active:addEffect("active", {
  card_num = 0,
  target_num = 0,
  target_tip = function (self, player, to_select, selected, selected_cards, card, selectable, extra_data)
    if not to_select:isKongcheng() and
      table.every(to_select:getCardIds("h"), function (id)
        return table.contains(DIY.getShownCards(to_select), id)
      end) then
      return { {content = "hanqing__liaofan", type = "warning"} }
    else
      return
    end
  end,
})

return liaofan_active
